home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.006 / xemacs-1 / lib / xemacs-19.13 / lisp / modes / cc-guess.elc < prev    next >
Emacs Compiled Lisp  |  1995-08-29  |  1.7 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was processed as: Emacs Compiled Lisp (other/emacsCompiledLisp).
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
1% dexvert Combustion 2 Particle Library (other/combustion2ParticleLibrary) ext Unsupported
100% file Emacs/XEmacs v19 byte-compiled Lisp data default
99% file data default
100% TrID Emacs/XEmacs byte-compiled Lisp (generic) default
100% xdgMime text/x-emacs-lisp default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 63 74 68 6f 6d 70 40 |piled by| cthomp@|
|00000020| 77 69 6c 6c 6f 77 2e 63 | 73 2e 75 69 75 63 2e 65 |willow.c|s.uiuc.e|
|00000030| 64 75 20 6f 6e 20 54 75 | 65 20 41 75 67 20 32 39 |du on Tu|e Aug 29|
|00000040| 20 31 34 3a 30 36 3a 30 | 33 20 31 39 39 35 0a 3b | 14:06:0|3 1995.;|
|00000050| 3b 3b 20 66 72 6f 6d 20 | 66 69 6c 65 20 2f 78 65 |;; from |file /xe|
|00000060| 6d 61 63 73 2f 78 65 6d | 61 63 73 2d 31 39 2e 31 |macs/xem|acs-19.1|
|00000070| 33 2d 72 65 6c 65 61 73 | 65 2f 65 64 69 74 6f 72 |3-releas|e/editor|
|00000080| 2f 6c 69 73 70 2f 6d 6f | 64 65 73 2f 63 63 2d 67 |/lisp/mo|des/cc-g|
|00000090| 75 65 73 73 2e 65 6c 0a | 3b 3b 3b 20 65 6d 61 63 |uess.el.|;;; emac|
|000000a0| 73 20 76 65 72 73 69 6f | 6e 20 31 39 2e 31 33 20 |s versio|n 19.13 |
|000000b0| 58 45 6d 61 63 73 20 4c | 75 63 69 64 2e 0a 3b 3b |XEmacs L|ucid..;;|
|000000c0| 3b 20 62 79 74 65 63 6f | 6d 70 20 76 65 72 73 69 |; byteco|mp versi|
|000000d0| 6f 6e 20 32 2e 32 35 3b | 20 31 2d 53 65 70 2d 39 |on 2.25;| 1-Sep-9|
|000000e0| 34 2e 0a 3b 3b 3b 20 6f | 70 74 69 6d 69 7a 61 74 |4..;;; o|ptimizat|
|000000f0| 69 6f 6e 20 69 73 20 6f | 6e 2e 0a 3b 3b 3b 20 74 |ion is o|n..;;; t|
|00000100| 68 69 73 20 66 69 6c 65 | 20 75 73 65 73 20 6f 70 |his file| uses op|
|00000110| 63 6f 64 65 73 20 77 68 | 69 63 68 20 64 6f 20 6e |codes wh|ich do n|
|00000120| 6f 74 20 65 78 69 73 74 | 20 69 6e 20 45 6d 61 63 |ot exist| in Emac|
|00000130| 73 20 31 38 2e 0a 0a 28 | 69 66 20 28 61 6e 64 20 |s 18...(|if (and |
|00000140| 28 62 6f 75 6e 64 70 20 | 27 65 6d 61 63 73 2d 76 |(boundp |'emacs-v|
|00000150| 65 72 73 69 6f 6e 29 0a | 09 20 28 6f 72 20 28 61 |ersion).|. (or (a|
|00000160| 6e 64 20 28 62 6f 75 6e | 64 70 20 27 65 70 6f 63 |nd (boun|dp 'epoc|
|00000170| 68 3a 3a 76 65 72 73 69 | 6f 6e 29 20 65 70 6f 63 |h::versi|on) epoc|
|00000180| 68 3a 3a 76 65 72 73 69 | 6f 6e 29 0a 09 20 20 20 |h::versi|on).. |
|00000190| 20 20 28 73 74 72 69 6e | 67 2d 6c 65 73 73 70 20 | (strin|g-lessp |
|000001a0| 65 6d 61 63 73 2d 76 65 | 72 73 69 6f 6e 20 22 31 |emacs-ve|rsion "1|
|000001b0| 39 22 29 29 29 0a 20 20 | 20 20 28 65 72 72 6f 72 |9"))). | (error|
|000001c0| 20 22 54 68 69 73 20 66 | 69 6c 65 20 77 61 73 20 | "This f|ile was |
|000001d0| 63 6f 6d 70 69 6c 65 64 | 20 66 6f 72 20 45 6d 61 |compiled| for Ema|
|000001e0| 63 73 20 31 39 2e 22 29 | 29 0a 0a 28 64 65 66 76 |cs 19.")|)..(defv|
|000001f0| 61 72 20 63 63 2d 67 75 | 65 73 73 65 64 2d 73 74 |ar cc-gu|essed-st|
|00000200| 79 6c 65 20 6e 69 6c 20 | 22 5c 0a 43 75 72 72 65 |yle nil |"\.Curre|
|00000210| 6e 74 6c 79 20 67 75 65 | 73 73 65 64 20 73 74 79 |ntly gue|ssed sty|
|00000220| 6c 65 2e 22 29 0a 28 62 | 79 74 65 2d 63 6f 64 65 |le.").(b|yte-code|
|00000230| 20 22 c0 c1 21 ac 82 c2 | 11 c0 87 22 20 5b 62 6f | "..!...|..." [bo|
|00000240| 75 6e 64 70 20 63 63 2d | 67 75 65 73 73 2d 63 6f |undp cc-|guess-co|
|00000250| 6e 76 65 72 73 69 6f 6e | 73 20 28 28 63 20 2e 20 |nversion|s ((c . |
|00000260| 63 2d 6c 69 6e 65 75 70 | 2d 43 2d 63 6f 6d 6d 65 |c-lineup|-C-comme|
|00000270| 6e 74 73 29 20 28 69 6e | 68 65 72 2d 63 6f 6e 74 |nts) (in|her-cont|
|00000280| 20 2e 20 63 2d 6c 69 6e | 65 75 70 2d 6d 75 6c 74 | . c-lin|eup-mult|
|00000290| 69 2d 69 6e 68 65 72 29 | 20 28 73 74 72 69 6e 67 |i-inher)| (string|
|000002a0| 20 2e 20 2d 31 30 30 30 | 29 20 28 63 6f 6d 6d 65 | . -1000|) (comme|
|000002b0| 6e 74 2d 69 6e 74 72 6f | 20 2e 20 63 2d 6c 69 6e |nt-intro| . c-lin|
|000002c0| 65 75 70 2d 63 6f 6d 6d | 65 6e 74 29 20 28 61 72 |eup-comm|ent) (ar|
|000002d0| 67 6c 69 73 74 2d 63 6f | 6e 74 2d 6e 6f 6e 65 6d |glist-co|nt-nonem|
|000002e0| 70 74 79 20 2e 20 63 2d | 6c 69 6e 65 75 70 2d 61 |pty . c-|lineup-a|
|000002f0| 72 67 6c 69 73 74 29 20 | 28 63 70 70 2d 6d 61 63 |rglist) |(cpp-mac|
|00000300| 72 6f 20 2e 20 2d 31 30 | 30 30 29 29 5d 20 32 29 |ro . -10|00))] 2)|
|00000310| 0a 28 66 73 65 74 20 27 | 63 63 2d 67 75 65 73 73 |.(fset '|cc-guess|
|00000320| 2d 72 65 67 69 6f 6e 20 | 23 5b 28 73 74 61 72 74 |-region |#[(start|
|00000330| 20 65 6e 64 20 26 6f 70 | 74 69 6f 6e 61 6c 20 72 | end &op|tional r|
|00000340| 65 73 65 74 29 20 22 08 | 3a ab 82 c1 12 8a 0b 62 |eset) ".|:......b|
|00000350| 88 60 0c 57 ad c7 c5 20 | 89 1e 06 40 41 1e 07 0e |.`.W... |...@A...|
|00000360| 06 40 40 1e 08 c1 1e 09 | c1 1e 5c 6e 0e 06 47 cb |.@@.....|..\n..G.|
|00000370| 55 ab a5 0e 07 a7 ab a0 | 0e 08 5c 6e 9e ac 9a cc |U.......|..\n....|
|00000380| 20 88 69 16 09 8a 0e 07 | 62 88 69 29 16 5c 6e 0e | .i.....|b.i).\n.|
|00000390| 08 0e 09 0e 5c 6e 5a 42 | 5c 6e 42 12 2d cb 79 88 |....\nZB|\nB.-.y.|
|000003a0| aa 34 29 87 22 20 5b 72 | 65 73 65 74 20 6e 69 6c |.4)." [r|eset nil|
|000003b0| 20 63 63 2d 67 75 65 73 | 73 65 64 2d 73 74 79 6c | cc-gues|sed-styl|
|000003c0| 65 20 73 74 61 72 74 20 | 65 6e 64 20 63 2d 67 75 |e start |end c-gu|
|000003d0| 65 73 73 2d 62 61 73 69 | 63 2d 73 79 6e 74 61 78 |ess-basi|c-syntax|
|000003e0| 20 73 79 6e 74 61 78 20 | 72 65 6c 70 6f 73 20 73 | syntax |relpos s|
|000003f0| 79 6d 62 6f 6c 20 70 6f | 69 6e 74 2d 69 6e 64 65 |ymbol po|int-inde|
|00000400| 6e 74 20 72 65 6c 70 6f | 73 2d 69 6e 64 65 6e 74 |nt relpo|s-indent|
|00000410| 20 31 20 62 61 63 6b 2d | 74 6f 2d 69 6e 64 65 6e | 1 back-|to-inden|
|00000420| 74 61 74 69 6f 6e 5d 20 | 34 20 22 5c 0a 53 65 74 |tation] |4 "\.Set|
|00000430| 73 20 60 63 2d 6f 66 66 | 73 65 74 2d 61 6c 69 73 |s `c-off|set-alis|
|00000440| 74 27 20 69 6e 64 65 6e | 74 61 74 69 6f 6e 20 76 |t' inden|tation v|
|00000450| 61 6c 75 65 73 20 62 61 | 73 65 64 20 6f 6e 20 72 |alues ba|sed on r|
|00000460| 65 67 69 6f 6e 20 6f 66 | 20 63 6f 64 65 2e 0a 45 |egion of| code..E|
|00000470| 76 65 72 79 20 6c 69 6e | 65 20 6f 66 20 63 6f 64 |very lin|e of cod|
|00000480| 65 20 69 6e 20 74 68 65 | 20 72 65 67 69 6f 6e 20 |e in the| region |
|00000490| 69 73 20 65 78 61 6d 69 | 6e 65 64 20 61 6e 64 20 |is exami|ned and |
|000004a0| 74 68 65 20 69 6e 64 65 | 6e 74 61 74 69 6f 6e 0a |the inde|ntation.|
|000004b0| 76 61 6c 75 65 73 20 6f | 66 20 74 68 65 20 76 61 |values o|f the va|
|000004c0| 72 69 6f 75 73 20 73 79 | 6e 74 61 63 74 69 63 20 |rious sy|ntactic |
|000004d0| 73 79 6d 62 6f 6c 73 20 | 69 6e 20 60 63 2d 6f 66 |symbols |in `c-of|
|000004e0| 66 73 65 74 2d 61 6c 69 | 73 74 27 20 69 73 0a 67 |fset-ali|st' is.g|
|000004f0| 75 65 73 73 65 64 2e 20 | 20 54 68 65 20 66 69 72 |uessed. | The fir|
|00000500| 73 74 20 73 75 63 68 20 | 70 6f 73 69 74 69 76 65 |st such |positive|
|00000510| 6c 79 20 69 64 65 6e 74 | 69 66 69 65 64 20 69 6e |ly ident|ified in|
|00000520| 64 65 6e 74 61 74 69 6f | 6e 20 69 73 20 75 73 65 |dentatio|n is use|
|00000530| 64 2c 20 73 6f 0a 69 66 | 20 61 6e 20 69 6e 63 6f |d, so.if| an inco|
|00000540| 6e 73 69 73 74 65 6e 74 | 20 73 74 79 6c 65 20 65 |nsistent| style e|
|00000550| 78 69 73 74 73 20 69 6e | 20 74 68 65 20 43 20 63 |xists in| the C c|
|00000560| 6f 64 65 2c 20 74 68 65 | 20 67 75 65 73 73 65 64 |ode, the| guessed|
|00000570| 20 69 6e 64 65 6e 74 61 | 74 69 6f 6e 0a 6d 61 79 | indenta|tion.may|
|00000580| 20 62 65 20 69 6e 63 6f | 72 72 65 63 74 2e 0a 0a | be inco|rrect...|
|00000590| 4e 6f 74 65 20 74 68 61 | 74 20 74 68 65 20 6c 61 |Note tha|t the la|
|000005a0| 72 67 65 72 20 74 68 65 | 20 72 65 67 69 6f 6e 20 |rger the| region |
|000005b0| 74 6f 20 67 75 65 73 73 | 20 69 6e 2c 20 74 68 65 |to guess| in, the|
|000005c0| 20 73 6c 6f 77 65 72 20 | 74 68 65 0a 67 75 65 73 | slower |the.gues|
|000005d0| 73 69 6e 67 2e 20 50 72 | 65 76 69 6f 75 73 20 67 |sing. Pr|evious g|
|000005e0| 75 65 73 73 65 73 20 63 | 61 6e 20 62 65 20 63 6f |uesses c|an be co|
|000005f0| 6e 63 61 74 65 6e 61 74 | 65 64 20 74 6f 67 65 74 |ncatenat|ed toget|
|00000600| 68 65 72 2c 20 75 6e 6c | 65 73 73 20 74 68 65 0a |her, unl|ess the.|
|00000610| 6f 70 74 69 6f 6e 61 6c | 20 52 45 53 45 54 20 69 |optional| RESET i|
|00000620| 73 20 70 72 6f 76 69 64 | 65 64 2e 0a 0a 53 65 65 |s provid|ed...See|
|00000630| 20 60 63 63 2d 67 75 65 | 73 73 2d 77 72 69 74 65 | `cc-gue|ss-write|
|00000640| 2d 73 74 79 6c 65 27 20 | 74 6f 20 66 69 6e 64 20 |-style' |to find |
|00000650| 6f 75 74 20 68 6f 77 20 | 74 6f 20 73 61 76 65 20 |out how |to save |
|00000660| 74 68 65 20 67 75 65 73 | 73 65 64 20 73 74 79 6c |the gues|sed styl|
|00000670| 65 2c 0a 61 6e 64 20 60 | 63 63 2d 67 75 65 73 73 |e,.and `|cc-guess|
|00000680| 2d 76 69 65 77 2d 73 74 | 79 6c 65 27 20 66 6f 72 |-view-st|yle' for|
|00000690| 20 76 69 65 77 69 6e 67 | 20 74 68 65 20 67 75 65 | viewing| the gue|
|000006a0| 73 73 65 64 20 73 74 79 | 6c 65 2e 22 20 22 72 5c |ssed sty|le." "r\|
|000006b0| 6e 50 22 5d 29 0a | |nP"]). | |
+--------+-------------------------+-------------------------+--------+--------+